package com.example.service;

import com.example.entity.result.Result;
import com.example.entity.vo.Order;
import com.example.entity.vo.State;

import java.util.List;

public interface OrderService {

    //查询
    Result query(String key, String value);
    //添加
    Result insertOrder(Order order);
    //修改
    Result updateOrder(Order order);
    //删除
    Result delete(int oid);
    //设置状态
    Result setOnState(Order order, State state);

    List<Order> queryAll();

}
